<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <!--<script src="test.js">
        //alert('内嵌式');
    </script>-->
<!--    <script src="file.js" async></script>-->
    <script src="file.js" defer></script>
</head>
<body>
<input type="button" value="点我" onclick="alert('行内式')">
</body>
</html>